package com.zhuiyun.project.api.plan.fitnessPlanAction.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.plan.fitnessPlanAction.entity.FitnessPlanAction;
import com.zhuiyun.project.api.plan.fitnessPlanAction.model.FitnessPlanActionModel;
import com.zhuiyun.project.api.plan.fitnessPlanActionCount.entity.FitnessPlanActionCount;
import com.zhuiyun.project.api.plan.fitnessPlanActionCount.model.FitnessPlanActionCountModel;
import com.zhuiyun.project.api.plan.fitnessType.entity.FitnessType;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FitnessPlanActionMapper extends BaseMapper<FitnessPlanAction> {
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作分页查询
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public List<FitnessPlanActionModel> selectAll(PageRequest pageRequest, Integer fitnessPlanId,Integer fitnessTypeId,String fitnessActionName);
    /**
     * @Author 杨珅
     * @Description todo 根据目的id全查标签
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public List<FitnessType> selectTypes(PageRequest pageRequest, Integer fitnessPurposeId);
    /**
     * @Author 杨珅
     * @Description todo 查询组数
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int selectCountAll(Integer planActionId);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作新增
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int insertFitnessPlanAction(FitnessPlanActionModel fitnessPlanAction);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作修改
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int updateFitnessPlanAction(FitnessPlanAction fitnessPlanAction);
    /**
     * @Author 杨珅
     * @Description todo 健身计划动作删除
     * @Date 2023/11/2 9:28
     * @Return  * @param null
     */
    public int deleteFitnessPlanAction(FitnessPlanAction fitnessPlanAction);
}
